<?php
require_once('Zend/Config/Xml.php');

if (!defined('ABS_PATH')) {
	define('ABS_PATH', dirname(__FILE__).'/');
}

// get the config object
$config = new Zend_Config_Xml(ABS_PATH . 'config.xml', 'staging');

if (version_compare($config->phpminversion, phpversion(), '>') ) {
	die( 'Your server is running PHP version ' . phpversion() . ' but Lagrange requires at least ' . $config->phpminversion);
}

if (!extension_loaded('mysql')) {
	die( 'Your PHP installation appears to be missing the MySQL which is required' );
}

define('APP_PATH', 'app');
define('INC_PATH', 'includes');
define('LIB_PATH', 'lib');
define('PLUGIN_PATH', 'plugins');

session_start();
?>
